<template>
  <div class="Instance">
    <template v-for="(data, index) in datalist">
      <div :key="index" class="instance-item">
        <img :src="data.src" />
        {{ data.content }}
      </div>
    </template>
  </div>
</template>

<script>
// import { Lazyload } from "vant";

export default {
  data() {
    return {
      datalist: [
        {
          to: "/case",
          src: require("@/assets/images/case.svg"),
          content: "案例",
        },
        {
          to: "/product",
          src: require("@/assets/images/product.svg"),
          content: "产品",
        },
        {
          to: "/news",
          src: require("@/assets/images/news.svg"),
          content: "新闻",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.Instance {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 1.36rem;
  line-height: 1.36rem;
  box-sizing: border-box;
  padding: 0.3333px 0.093333rem;
  background: #f5f5f5;
  .instance-item {
    width: 32%;
    height: 0.666667rem;
    line-height: 0.666667rem;
    background: #fff;
    font-size: 0.186667rem;
    img {
      width: 0.266667rem;
      height: 0.266667rem;
    }
  }
}
</style>